<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('grass',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('grass');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'基本信息',
				'list'=>array(
					array('type'=>'string','title'=>'视频列表标题','name'=>'title','help'=>'例如：视频分享'),
					array('type'=>'string','title'=>'视频列表描述','name'=>'desc'),
					array('type'=>'image','title'=>'视频列表图片','name'=>'image','help'=>'尺寸280px*280px'),
				)
			),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
